package com.jz.pay.consumer;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(topic = "test-jz", consumerGroup = "jz-con")
public class PayConsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String o) {
        System.out.println("消息处理：");
        System.out.println(o);
    }
}

